package com.pan.admin.module.distribute.entity;


import com.pan.admin.common.annotation.Excel;
import com.pan.admin.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 智能分配子链接对象 loan_distribute
 * 
 * @author ts
 * @date 2023-09-10
 */
public class LoanDistribute extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 分配组id */
    @Excel(name = "分配组id")
    private Long loanDistributeGroupId;

    /** 链接名称 */
    @Excel(name = "链接名称")
    private String name;

    /** 链接地址 */
    @Excel(name = "链接地址")
    private String url;

    /** 排序(最大值越往上) */
    @Excel(name = "排序(最大值越往上)")
    private Long sort;

    /**
     * 状态0禁用1启用
     */
    @Excel(name = "状态")
    private Integer status;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }
    public void setLoanDistributeGroupId(Long loanDistributeGroupId) {
        this.loanDistributeGroupId = loanDistributeGroupId;
    }

    public Long getLoanDistributeGroupId() {
        return loanDistributeGroupId;
    }
    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }
    public void setUrl(String url) {
        this.url = url;
    }

    public String getUrl() {
        return url;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    public Long getSort() {
        return sort;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("loanDistributeGroupId", getLoanDistributeGroupId())
            .append("name", getName())
            .append("url", getUrl())
            .append("sort", getSort())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("status", getStatus())
            .toString();
    }
}
